package com.scm.erp.framework.handler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/***
 * @author  登陆验证
 */
@Component
public class loginHandler implements HandlerInterceptor {
    public final static Logger logger = LoggerFactory.getLogger(loginHandler.class);
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        logger.info("========== 进入拦截器 ==========");
        return true;
    }
}
